package com.info.zhiduoduo.repository.entity.crowdsource;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 智众包自然人推送记录
 * </p>
 *
 * @author cuichenglong
 * @since 2020-08-24
 */
@Data
@Accessors(chain = true)
@TableName("zdd_crowdsource_examine")
public class CrowdsourceExamine extends Model<CrowdsourceExamine> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 自然人编号
     */
    @TableField("crowdsource_number")
    private String crowdsourceNumber;
    /**
     * 1:未审核 2:审核成功 3:审核失败
     */
    private int state;
    /**
     * 补充信息，若审核失败，则为失败原因
     */
    private String msg;
    /**
     * 审核通过时间
     */
    @TableField("audit_time")
    private Date auditTime;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 推送次数
     * @return
     */
    private Integer number;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
